Repository navigation
feat(init): mark the project as connected after init - #451
Draft
angeloashmore wants to merge 1 commit into
Draft
angeloashmore wants to merge 1 commit into
angeloashmore wants to merge 1 commit into
Conversation
The Prismic dashboard waits for the `connectPrismic` onboarding step to know that a project is connected. Only `prismic pull` and `prismic sync` completed this step. A developer who ran only `prismic init` stayed on the setup screen. `prismic init` now completes the step after it syncs the models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L1dGD83ArFyyY1WATHG3zW
angeloashmore
marked this pull request as draft
November 2, 2026 23:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves:
Description
Before this PR, only
prismic pullandprismic synccompleted theconnectPrismiconboarding step.prismic initconnected the project, but it did not complete the step.The new project setup dialog in the dashboard (https://github.com/prismicio/editor/pull/2610) waits for this step before it unlocks. For example, a developer who ran only
prismic init, as the dialog tells them, stayed on the locked dialog.After this PR,
prismic initcompletes theconnectPrismicstep after it syncs the models. If the onboarding service fails,initcontinues, aspulldoes.Checklist
Preview
How to QA 1
npx prismic init --repo <repository>.connectPrismic.Generated by Claude Code
Note
Low Risk
Adds a non-blocking onboarding API call aligned with existing pull/sync behavior; no auth or model-sync logic changes.
Overview
prismic initnow marks theconnectPrismiconboarding step complete after model sync and type generation, matchingpullandsync. That lets the dashboard new-project setup dialog unlock when developers follow instructions to run onlyinit.Onboarding API failures are swallowed (.catch(() => {})), so
initstill succeeds if the step cannot be recorded.The
--repointegration test assertsconnectPrismicappears in completed onboarding steps.Reviewed by Cursor Bugbot for commit 8b573a5. Bugbot is set up for automated code reviews on this repo. Configure here.
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩